<?php
/**
 * Mail: 11447474@qq.com
 * User: LauEl
 * Date: 17/9/25
 * Time: 22:48
 */

include('mysql.php');
$id = $_GET['id'];
$sql = "select * from member where id='$id'";
$res = mysql_query($sql);
$list = mysql_fetch_assoc($res);
?>
<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>修改留言板信息</title>
</head>
<h1>修改留言板信息</h1>
<body>
<!--发送到index.php文件 是post的传参数-->
<form action="uplist.php" method="post">
    <input type="hidden" name="id" value="<?php echo $list['id'] ?>">
    <input type="text" name="name" value="<?php echo $list['name']; ?>">
    <br>
    <input type="text" name="password" value="<?php echo $list['password']; ?>">
    <br>
    <input type="submit" value="修改">
</form>
<a href="list.php">显示留言板内容</a>
</body>
</html>

